<?php

/*
	Class: ContentAttributes.php

	About: Author
		J William McCarthy

	About: License
		<http://communit.as/docs/license>

	About: See Also
	 	<App_Db_Table_Abstract>
*/
class ContentAttributes extends App_Db_Table_Abstract {
    protected $_name 	= 'content_attributes';
    protected $_primary = 'attribute_id';

	/* Group: Has No Methods */
	
		function AttributeIdExists($attribute_id){
		
		if($this->getCountByWhereClause($this->getAdapter()->quoteInto("attribute_id = ?",$attribute_id)) == 0){
			return false;
		} else {
			return true;
		}
		
	}
	
	function getAttributeById($attribute_id){
		$where = $this->getAdapter()->quoteInto("attribute_id = ?",$attribute_id);
		return $this->fetchRow($where);
	}
	
	
}